package com.example.practice;

import java.util.HashMap;
import java.util.Map;
import java.util.Set;

/**
 * Created by IntelliJ IDEA2021.3
 *
 * @Author: Tenghw
 * @Date: 2022/10/07  14:40
 * @Description:
 */
public class Demo1 {
    public static void main0(String[] args) {
        HashMap<Object, Object> map = new HashMap<>();
        map.put("key1", "abc");
        map.put("key2", "def");
        map.put("key3", "ghik");
        Set<Object> keySet = map.keySet();
        System.out.println(keySet);
        Set<Map.Entry<Object, Object>> entrySet = map.entrySet();
        System.out.println(entrySet);


    }

    public static void main(String[] args) {
        ThreadLocal<String> threadLocal123 = new ThreadLocal<>();
        threadLocal123.set("123");
        Thread currentThread = Thread.currentThread();
        System.out.println(currentThread);

       
    }
}